package com.yuejie.musicai.services;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;

import org.springframework.stereotype.Service;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.StaxDriver;
import com.yuejie.musicai.beans.Result;
import com.yuejie.musicai.beans.Song;

/**
 * 搜索结果相关Service
 * 
 * @author Ocelot
 */
public interface ResultService {

	/**
	 * 返回搜索结果
	 * 
	 * @param qword
	 * @param page
	 * @return
	 */
	public Result getResult(String qword, String page);

	/**
	 * 返回分页链接
	 * 
	 * @param currentPageNo
	 * @param maxPageNo
	 * @param qword
	 * @return
	 */
	public String getPagelink(int currentPageNo, int maxPageNo, String qword);

}
